<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="<?php echo base_url();?>assets/css/bootstrap.css" type="text/css" media="screen"/>
<link rel="stylesheet" href="<?php echo base_url();?>assets/css/style.css" type="text/css" media="screen"/>
<title>What's Up</title>
</head>

<body>
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/fr_FR/all.js#xfbml=1&appId=708365059182414";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>


<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
  <!-- Brand and toggle get grouped for better mobile display -->
  <div class="navbar-header">
    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
      <span class="sr-only">Toggle navigation</span>
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
    </button>
    <a class="navbar-brand" href="#">Brand</a>
  </div>

  	<!-- Collect the nav links, forms, and other content for toggling -->
	<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
        <ul class="nav navbar-nav">
          <li <?php echo base_url()."index.php" == current_url() ? "class='active'" : "" ?>"><a href="<?php echo base_url(); ?>">Accueil</a></li>
          <li><a href="#">Link</a></li>
          <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
            <ul class="dropdown-menu">
              <li><a href="#">Action</a></li>
              <li><a href="#">Another action</a></li>
              <li><a href="#">Cedric mon</a></li>
              <li class="divider"></li>
              <li><a href="#">Separated link</a></li>
              <li class="divider"></li>
              <li><a href="#">One more separated link</a></li>
            </ul>
          </li>
        </ul>
    	<form class="navbar-form navbar-left" role="search">
            <div class="form-group">
            <input type="text" class="form-control" placeholder="Rechercher">
            </div>
            <button type="submit" class="btn btn-default">Go !</button>
        </form>
    	<ul class="nav navbar-nav navbar-right">
            <li><a href="#">Link</a></li>
            <?php if (isset($session_user) && $session_user != NULL): ?>
              <li class="dropdown">
                  <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                    <img height="30" src="<?php echo $session_user['avatar'] ?>" alt="..." class="img-rounded">
                    <?php echo $session_user['firstname']." ".$session_user['name']; ?><b class="caret"></b> </a>  
                  <ul class="dropdown-menu">  
                      <li><a href="#">Mon profil</a></li>  
                      <li><a href="<?php echo base_url()."index.php/inscription/logout" ?>">Déconnexion</a></li>  
                  </ul>  
              </li>
            <?php else: ?>
            <li <?php echo strpos(current_url(),'inscription') ? "class='active'" : '' ?>><a href="<?php echo base_url().'index.php/inscription' ?>">S'inscrire</a></li>
          <?php endif ?>

		</ul>
	</div><!-- /.navbar-collapse -->
</nav>
<div class="container-narrow">
	<div class="row-fluid">

